<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    *{margin:0; padding:0;}
    .box img{float:left;}
    .box p{float:left;}
/* .box{overflow:hidden;} */
    .box{display:table-cell; width:9999px;}
    
  </style>
</head>
<body>
  <div class="box">
    
    <img src="http://qn.yanmingweb.com/images/2.jpg" width="50" alt="">
    <p>haha</p>
  </div>
  <div class="nextBox">xixi</div>
</body>
</html>